package com.kaikai.edu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kaikai.edu.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kaikai.edu.entity.frontvo.CourseFrontQueryInfo;
import com.kaikai.edu.entity.frontvo.CourseFrontVo;
import com.kaikai.edu.entity.vo.CourseInfoVo;
import com.kaikai.edu.entity.vo.CoursePublishVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author yujiankai
 * @since 2021-05-14
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfoById(String courseId);

    void updateCourseInfo(CourseInfoVo form);

    CoursePublishVo getCoursePublishInfo(String courseId);

    Boolean deleteCourseById(String courseId);

    List<EduCourse> list8_courses();

    Map<String, Object> pageListCourse(Page<EduCourse> coursePage, CourseFrontQueryInfo queryInfo);

    CourseFrontVo getCourseWebInfo(String courseId);
}
